<?php

namespace maotool\exception;

use Psr\Container\NotFoundExceptionInterface;

class MethodNotFoundException extends \RuntimeException implements NotFoundExceptionInterface
{
    protected $method;

    public function __construct($message, $method = '')
    {
        $this->message = $message;
        $this->method = $method;
    }

    /**
     * 获取方法
     * @access public
     * @return string
     */
    public function getMethod()
    {
        return $this->method;
    }
}